<?php
class Zendvn_Module_Function{
	
	protected $_arrParam;
	
	protected $_fileConfig;
	
	protected $_section = 'public-function';
	
	public function __construct($arrParam = null,$options = null){
		$this->_arrParam = $arrParam;
		$fileConfig = CONFIG_PATH . '/modules/' . $this->_arrParam['flist'] . '.ini';
		if(file_exists($fileConfig)){
			$this->_fileConfig = $fileConfig;
		}else{
			$this->_fileConfig = null;
		}
		
    }

    public function loadList(){
    	$newArray = array();
    	if($this->_fileConfig != null){
    		$config = new Zend_Config_Ini($this->_fileConfig,$this->_section);
    		$arrConfig = $config->toArray();
    		foreach ($arrConfig as $key => $val){
    			$newArray[$val['call']] = $val['name'];
    		}
    	}
    	
    	return $newArray;
    }
  
   
}